package com.tju.arseni_graduate

import android.annotation.SuppressLint
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.databinding.DataBindingUtil
import com.alibaba.android.arouter.facade.annotation.Route
import com.tju.arseni_graduate.databinding.AppActivityWelcomeBinding
import com.tju.driver.SerialManager

@Route(path = "/app/welcome")
class WelcomeActivity : AppCompatActivity() {
    @SuppressLint("ResourceAsColor")
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        //setContentView(R.layout.app_activity_welcome)
        val binding = DataBindingUtil.setContentView<AppActivityWelcomeBinding>(this, R.layout.app_activity_welcome)

//        Thread {
//            var data: Byte = 0x00
//            while (true) {
//                data++
//                SerialManager.sendByte(data)
//            }
//        }.start()

    }
}